<html>

    <head>
        <script>
            var date = new Date();
            date.setTime(date.getTime() + 1000 * 86400);
            document.cookie = "foo=bar; expires=" + date.toUTCString() + "; path=/";
        </script>
    </head>

    <body>
        Set cookies
    </body>

</html>
